<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <title>住房保障公示</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="../../css/directory/detail.css" />
    <script src="../../js/statistics.js"></script>
    <style>
        .header a{
            color:#fff;
        }
        .download p{
            font-size:13px;
            margin-left:10%;
            margin-top: 5px;
            color:#333;
        }
        .download p:hover{
            text-decoration:underline;
        }
        .mui-content h3{
            font-size:18px;
            text-align:center;
            line-height:26px;
        }
        .date{
            padding-left:15px;
        }
        .date span{
            color: #999;
            font-size: 13px;
        }
        .download{
            margin-left:15px;
            margin-top:20px;
            font-size:15px;
        }
    </style>
</head>

<body>
<header class="mui-bar mui-bar-nav header">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title" id='title'>住房保障公示</h1>
</header>
<div class='mui-content'>
    <!--<h3>2016年退出租赁补贴名单</h3>
    <div class="date" style="border-bottom:1px solid #f5f5f5;">
        <span>2011-03-08</span>
        <span style="padding-left:5px;">溧阳市住房保障</span>
    </div>
    <div class="download">
        点击下载：<p>2016年租赁补贴退出名单（103户）.xlsx</p>
    </div>-->
</div>
<script src="../../plugins/jquery/jquery-3.1.0.min.js" type="text/javascript" ></script>
<script src="../../plugins/mui/mui.min.js"></script>
<script src="../../plugins/template/template.js" type="text/javascript" ></script>
<script src="../../js/md5.js" type="text/javascript"></script>
<script src="../../js/getApiToken.js" type="text/javascript"></script>
<script src="../../js/executive_housekeeper/download.js"></script>
<script type="text/javascript">
    mui.init();
    var array=  {
        'date':['2016-10-19','2016-03-28','2016-03-24','2016-01-07'],
        'name':['2016年退出租赁补贴名单','2016年保障性安居工程项目进度情况表','2016年退出租赁补贴名单','2016年公租房房源(187套)'],
        'main':['2016年租赁补贴退出名单（103户）.xlsx','2016年保障性工程项目进度表.xlsx','2016年租赁退出名单（宣）.xlsx','2016年公租房房源（187套）.xlsx'],
        'address':['http://citygo.0519ztnet.com/excel/a1.xlsx','http://citygo.0519ztnet.com/excel/a2.xlsx','http://citygo.0519ztnet.com/excel/a3.xlsx','http://citygo.0519ztnet.com/excel/a4.xlsx',]
    }
     
    mui.plusReady(function() {
        var ws = plus.webview.currentWebview(),
            value = ws.value;
        console.log(value);
        var html=
                '<h3>'+array.name[value]+'</h3>'+
                '<div class="date" style="border-bottom:1px solid #f5f5f5;">'+
	                '<span>'+array.date[value]+'</span>'+
	                '<span style="padding-left:5px;">溧阳市住房保障</span>'+
                '</div>'+
                '<div class="download">'+
                    '点击下载：'+'<p class="loader" href="' + array.address[value] + '">'+array.main[value]+'</p>'+
                '</div>';
        $('.mui-content').append(html);
//      console.log(_baseUrl);
        
        //点击下载
//      $('.mui-content').delegate('.loader','tap',function(){
//      	console.log(_baseUrl+'excel/a1.xlsx');
//          var loader=plus.downloader.createDownload(_baseUrl+array.address[value],{method:'get',filename:'_doc/'+array.main[value]},function(d,status){
//              var filename=d.filename;
//              plus.gallery.save(filename,function(){
//                  mui.alert('文件下载成功')
//              })
//
//          })
//          loader.start();
//
//          console.log(_baseUrl+"/"+array.address[value]);
//      })
//      
        
      
        
        
    }); 
    
</script>
</body>

</html>